import 'package:get/get.dart';
import 'package:interrogation/src/base/utils/storage_manager.dart';

import 'data/models/get_info_res.dart';

class MainService extends GetxService {
  StorageManager storageManager = StorageManager();
  int userId = 0;
  UserInfo userInfo = UserInfo();
  get isDoctor {
    if (userInfo.roles == null) return false;
    return userInfo.roles!.any((element) => element.id == 154);
  }
}
